package com.banshuibao.bsb_android.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.banshuibao.bsb_android.R;
import com.banshuibao.bsb_android.util.IntentManager;

/**
 * Created by zyh on 2018/5/23.
 */

public class ToolsActivity extends BaseActivity implements View.OnClickListener {

    private ImageView counter, calendar, search, tax_search;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activtiy_tools);

        initView();
    }

    private void initView() {
        setTitleText("工具库");
        calendar = findViewById(R.id.calendar);
        counter = findViewById(R.id.counter);
        search = findViewById(R.id.search);
        tax_search = findViewById(R.id.tax_search);

        counter.setOnClickListener(this);
        calendar.setOnClickListener(this);
        search.setOnClickListener(this);
        tax_search.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.counter:
                IntentManager.goCounterActivity(context);
                break;
            case R.id.search:
                IntentManager.goAccountantSearchActivity(context);
                break;
            case R.id.calendar:
                IntentManager.goCalendarActivity(context);
                break;
            case R.id.tax_search:
                IntentManager.goTaxSearchActivity(context);
                break;
        }
    }
}
